package com.db.bankapp.exception;

/**
 * Created by Student on 20.08.2014.
 */
public class OverDraftLimitExceedException extends NotEnoughFundsException {
    public int getBalance() {
        return balance;
    }

    public int getOverdraft() {
        return overdraft;
    }

    private int balance;
    private int overdraft;
    public OverDraftLimitExceedException(int amount, int balance, int overdraft) {
        super(amount);
        this.balance=balance;
        this.overdraft=overdraft;
    }

    public OverDraftLimitExceedException(String message, int amount, int balance, int overdraft) {
        super(message, amount);
        this.balance=balance;
        this.overdraft=overdraft;
    }

    public OverDraftLimitExceedException(String message, Throwable cause, int amount, int balance, int overdraft) {
        super(message, cause, amount);
        this.balance=balance;
        this.overdraft=overdraft;
    }

    public OverDraftLimitExceedException(Throwable cause, int amount, int balance, int overdraft) {
        super(cause, amount);
        this.balance=balance;
        this.overdraft=overdraft;
    }

    public OverDraftLimitExceedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int amount, int balance, int overdraft) {
        super(message, cause, enableSuppression, writableStackTrace, amount);
        this.balance=balance;
        this.overdraft=overdraft;
    }
}
